home *** CD-ROM | disk | FTP | other *** search
- on MouseClick
- global gNumSpr, gSurvolPrec, gBoutons
- gBoutons(relache, gNumSpr)
- set gSurvolPrec to -1
- beep()
- end
-
- on mouseDown
- global gBoutons, gNumSpr, g1erSprChr
- set gNumSpr to 0
- repeat with i = g1erSprChr to g1erSprChr + 9
- if rollOver(i) then
- set gNumSpr to i
- exit repeat
- end if
- end repeat
- if (gNumSpr >= g1erSprChr) and (gNumSpr <= (g1erSprChr + 9)) then
- if word 2 of the name of cast the castNum of sprite gNumSpr = "1" then
- gBoutons(appuie, gNumSpr)
- else
- set gNumSpr to -2
- end if
- end if
- end
-
- on mouseUp
- global gBoutons, gNumSpr, g1erSprChr
- curseur(1)
- set monNumSpr to 0
- repeat with i = g1erSprChr to g1erSprChr + 9
- if rollOver(i) then
- set monNumSpr to i
- exit repeat
- end if
- end repeat
- if gNumSpr = monNumSpr then
- MouseClick()
- else
- pass()
- end if
- end
-